"""
运行项目文件
"""
import os
import pytest

#  创建测试报告
reports = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'reports')
if not os.path.exists(reports):
    os.mkdir(reports)

if __name__ == '__main__':
    pytest.main(['testcases', '--clean-alluredir', '-s', '-v', f'--alluredir={reports}'])
